﻿using System;
using System.Windows;
using System.Windows.Media.Imaging;
using PDOGenerator.MapTypes;

namespace PDOGenerator.Dialogs
{

    /// <summary>
    /// Interaction logic for GenerateDialog.xaml
    /// </summary>
    public partial class GenerateDialog : Window
    {
        public GenerateDialog()
        {
            InitializeComponent();
        }

        private Project _project;
        public GenerateDialog(Project project) : this()
        {
            _project = project;
            this.DataContext = _project;
        }

        private void _okBtn_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
            this.Close();
        }

        private void _cancelBtn_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
            this.Close();
        }
     

    }
}
